<!DOCTYPE html>
<!-- saved from url=(0026)http://w.weipaitang.com/my -->
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
<meta name="format-detection" content="telephone=no">
<title><?php echo $output['site_name'];?></title>
<link href="<?php echo TEMPLATE_SITE_URL;?>/css/theme_<?php echo $output['site_theme'];?>.css" type="text/css" rel="stylesheet">
<script type="text/javascript" src="<?php echo RESOURCE_SITE_URL;?>/js/jquery-1.7.1.min.js"></script>
<script type="text/javascript" src="<?php echo RESOURCE_SITE_URL;?>/js/jquery.event.drag-1.5.min.js"></script>
<script type="text/javascript" src="<?php echo RESOURCE_SITE_URL;?>/js/jquery.touchSlider.js"></script>
<script type="text/javascript">
$(document).ready(function(){

	$(".main_visual").hover(function(){
		$("#btn_prev,#btn_next").fadeIn()
	},function(){
		$("#btn_prev,#btn_next").fadeOut()
	});
	
	$dragBln = false;
	
	$(".main_image").touchSlider({
		flexible : true,
		speed : 200,
		btn_prev : $("#btn_prev"),
		btn_next : $("#btn_next"),
		paging : $(".flicking_con a"),
		counter : function (e){
			$(".flicking_con a").removeClass("on").eq(e.current-1).addClass("on");
		}
	});
	
	$(".main_image").bind("mousedown", function() {
		$dragBln = false;
	});
	
	$(".main_image").bind("dragstart", function() {
		$dragBln = true;
	});
	
	$(".main_image a").click(function(){
		if($dragBln) {
			return false;
		}
	});
	
	timer = setInterval(function(){
		$("#btn_next").click();
	}, 5000);
	
	$(".main_visual").hover(function(){
		clearInterval(timer);
	},function(){
		timer = setInterval(function(){
			$("#btn_next").click();
		},5000);
	});
	
	$(".main_image").bind("touchstart",function(){
		clearInterval(timer);
	}).bind("touchend", function(){
		timer = setInterval(function(){
			$("#btn_next").click();
		}, 5000);
	});
	
});
</script>
</head>
<body>
<div id="contentbox" style="min-height: 590px;">
  <div class="myMain">
   
    <div class="main_visual">
	<div class="flicking_con">
		<?php for($i=1;$i<=count($output['slide']);$i++){?>
		<a href="javascript:;"><?php echo $i;?></a>
		<?php }?>
	</div>
	<div class="main_image">
		<ul>
			<?php if(!empty($output['slide'])){?>
			<?php foreach($output['slide'] as $val){?>
			<li><img src="<?php echo UPLOAD_SITE_URL;?>/shop/tuwen/<?php echo $val['slide_pic'];?>"></li>
			<?php }?>
			<?php }?>
		</ul>
		<a href="javascript:;" id="btn_prev"></a>
		<a href="javascript:;" id="btn_next"></a>
	</div>
</div>
<div class="phone">联系电话：<a href="tel:<?php echo $output['site_tele'];?>"><?php echo $output['site_tele'];?></a></div>
<div class="mainButtons">
  
  <ul>
    <a href="<?php echo BASE_SITE_URL;?>/index.php?act=wap&op=article&article_id=1"><li><img src="<?php echo TEMPLATE_SITE_URL;?>/images/mainbutton01.png"><h2>公司简介</h2></li></a>
    <a href="<?php echo BASE_SITE_URL;?>/index.php?act=wap&op=article&article_id=2"><li><img src="<?php echo TEMPLATE_SITE_URL;?>/images/mainbutton02.png"><h2>关于我们</h2></li></a>
    <a href="<?php echo BASE_SITE_URL;?>/index.php?act=wap&op=article&article_id=3"><li><img src="<?php echo TEMPLATE_SITE_URL;?>/images/mainbutton03.png"><h2>联系我们</h2></li></a>
    <a href="<?php echo BASE_SITE_URL;?>/index.php?act=wap&op=article&article_id=4"><li><img src="<?php echo TEMPLATE_SITE_URL;?>/images/mainbutton04.png"><h2>加入我们</h2></li></a>
    <a href="<?php echo BASE_SITE_URL;?>/index.php?act=wap&op=article&article_id=5"><li><img src="<?php echo TEMPLATE_SITE_URL;?>/images/mainbutton05.png"><h2>公司动态</h2></li></a>
    <a href="<?php echo BASE_SITE_URL;?>/index.php?act=wap&op=article&article_id=6"><li><img src="<?php echo TEMPLATE_SITE_URL;?>/images/mainbutton06.png"><h2>最新公告</h2></li></a>
  </ul>
</div>

	<div class="footerDiv">
	  <div class="copyRight"><p>Copyright © <?php echo $output['site_copyright'];?></p></div>
	</div>
</div>
</div>
<?php echo htmlspecialchars_decode($output['tongji']);?>

</body>
</html>
